package org.september.pisces.user.permission;

import org.september.pisces.user.permission.controller.DepartmentController;
import org.september.pisces.user.permission.controller.OperationLogController;
import org.september.pisces.user.permission.controller.PiscesSystemRoleController;
import org.september.pisces.user.permission.controller.PiscesSystemUserController;

public enum PiscesSystemUserPermission {
	用户列表(PiscesSystemUserController.List_Page,PiscesSystemUserController.List_Data),
	添加用户(PiscesSystemUserController.Add_Page,PiscesSystemUserController.Add_Action),
	编辑用户(PiscesSystemUserController.Edit_Page,PiscesSystemUserController.Edit_Action),
	删除用户(PiscesSystemUserController.Delete_Action),
	
	角色列表(PiscesSystemRoleController.List_Page,PiscesSystemRoleController.List_Data),
	添加角色(PiscesSystemRoleController.Add_Page,PiscesSystemRoleController.Add_Action),
	编辑角色(PiscesSystemRoleController.Edit_Page,PiscesSystemRoleController.Edit_Action),
	分配权限(PiscesSystemRoleController.Grant_Permission_Page,PiscesSystemRoleController.Grant_Permission_Action),
	克隆角色(PiscesSystemRoleController.Clone_Action),
	删除角色(PiscesSystemRoleController.Delete_Action),
	
	组织架构页面(DepartmentController.List_Page,DepartmentController.List_Data,DepartmentController.Get_Data),
	添加部门(DepartmentController.Add_Page,DepartmentController.Add_Action),
	编辑部门(DepartmentController.Edit_Page,DepartmentController.Edit_Action),
	删除部门(DepartmentController.Delete_Action),
	
    操作日志列表(OperationLogController.List_Page,OperationLogController.List_Data),
	
	;

    private String name;
    private String[] urls;

    PiscesSystemUserPermission(String... urls) {
        this.name = this.name();
        this.urls = urls;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String[] getUrls() {
		return urls;
	}

	public void setUrls(String[] urls) {
		this.urls = urls;
	}

}
